package com.biubiux2.entity;

import io.netty.channel.Channel;

/**
 * @author Lijinbao
 * @since 8/4/2022 6:56 PM
 */
public class User {

    public User() {
    }

    public User(int userId, String username, String passwd, int friendCount) {
        this.userId = userId;
        this.username = username;
        this.passwd = passwd;
        this.friendCount = friendCount;
    }

    int userId;

    String username;

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public void setFriendCount(int friendCount) {
        this.friendCount = friendCount;
    }

    String passwd;

    int friendCount;

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public Channel getChannel() {
        return channel;
    }

    @Deprecated
    Channel channel;

    public int getUserId() {
        return userId;
    }

    public String getUsername() {
        return username;
    }

    public String getPasswd() {
        return passwd;
    }

    public int getFriendCount() {
        return friendCount;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", passwd='" + passwd + '\'' +
                ", friendCount=" + friendCount +
                '}';
    }
}
